<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title><?php echo C('sitename');?></title>
    <meta name="description" content="<?php echo ($web['description']); ?>" />
    <meta name="keywords" content="<?php echo ($web['keywords']); ?>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="/lzkong/blog/Public/Home/img/favicon.jpg">
    <link rel="stylesheet" href="/lzkong/blog/Public/Common/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/lzkong/blog/Public/Common/css/font-awesome.min.css" />
    <link rel="stylesheet" href="/lzkong/blog/Public/Home/css/base.css" />
    <!--小飞机-->
    <link rel="stylesheet" href="/lzkong/blog/Public/Home/css/plane.css" />

    <script src="/lzkong/blog/Public/Home/js/jquery.js"></script>
    
    
    <script>window.onload=function(){window.loaded=!0};</script>
</head>
<body>
    <header class="main-header" style="background-image: url(/lzkong/blog/Uploads/banner1.jpg)">
        <!--小飞机-->
        <div class="plane">
            <div class="wings">
                <div class="fan">
                    <div class="fan-wings">
                        <div class="fan-a"></div>
                        <div class="fan-b"></div>
                        <div class="fan-c"></div>
                        <div class="fan-d"></div>
                    </div>
                </div>
                <div class="cat">
                    <div class="legs"></div>
                </div>
            </div>
            <div class="wheel">
                <div class="left"></div>
                <div class="right"></div>
            </div>
        </div>

    </header>

    <nav class="main-navigation">
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <div class="navbar-header">
                        <span class="nav-toggle-button collapsed" data-toggle="collapse" data-target="#main-menu">
                            <span class="sr-only">Toggle navigation</span>
                            <i class="fa fa-bars"></i>
                        </span>
                    </div>
                    <div class="collapse navbar-collapse" id="main-menu">
                        <ul class="menu">
                            <?php if(is_array($nav_list)): $i = 0; $__LIST__ = $nav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><li <?php if($active == $row['active']): ?>class="nav-current"<?php endif; ?> role="presentation">
                                    <a href="<?php echo U($row['url']);?>"><?php echo ($row['name']); ?></a>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>
    
    <div class="container">
        <div class="line-big">
            <div class="col-md-12">
                <div class="line-small">
                    <div class="">
                        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="clearfix articlebox">
                                <div class="liuyan_a">
                                </div>
                                <div class="said_img">
                                    <img src="/lzkong/blog<?php echo ($vo["photo"]); ?>" class="radius-circle" width="60px" height="60px" />
                                    <div class="liuyan_t">
                                        <span class="icon-user"></span>&nbsp;&nbsp;<a><?php echo ($vo["username"]); ?></a>&nbsp;&nbsp;</span>
                                        <span class="icon-paper-plane"></span>&nbsp;<?php echo (tranTime($vo["add_time"])); ?>&nbsp;&nbsp;</span>
                                        <span class="tag bg-dot"><?php echo ($vo["from"]); ?></span>&nbsp;&nbsp;<span class="icon-map-marker"></span>&nbsp;<?php echo ($vo["ip"]); ?>
                                    </div>
                                    <div class="liuyan_c">
                                        <?php echo ($vo["content"]); ?>
                                    </div>

                                </div>

                                <!--回复-->
                                <?php if($vo["c_content"] != ''): ?><div class="f_liuyan">
                                        <hr />
                                        <div class="liuyan_a">
                                        </div>
                                        <div class="said_img">
                                            <img src="/lzkong/blog/Uploads/<?php echo ($vo['c_photo']); ?>" class="radius-circle" width="60px" height="60px" />
                                            <div class="liuyan_t">
                                                <span class="icon-user"></span>&nbsp;&nbsp;管理员&nbsp;&nbsp;</span>
                                                <span class="icon-paper-plane"></span>&nbsp;&nbsp;<?php echo (tranTime($vo["c_time"])); ?>&nbsp;&nbsp;
                                                <span>回复 @<a><?php echo ($vo["username"]); ?></a> 中说到：</span>
                                            </div>
                                            <div class="liuyan_c">
                                                <?php echo ($vo["c_content"]); ?>
                                            </div>
                                        </div>
                                    </div><?php endif; ?>
                            </div>
                            <br /><?php endforeach; endif; else: echo "" ;endif; ?>
                        <br />
                        <div class="pagination" style=" text-align: right;">
                            <?php echo ($page); ?>
                        </div>
                        <br />
                        <hr />

                        <div class="panel border-main">
                            <div class="panel-head">
                                <h3>留  言</h3>
                            </div>
                            <div class="">
                                <div class="panel-body">
                                    <form action="<?php echo U('Home/liuyan/addContent');?>" method="post" class="form form-block">
                                        <div class="form-group">
                                            <div class="field">
                                                <div class="input-group">
                                                    <span class="input-group-addon" id="basic-addon1">昵称</span>
                                                    <input type="text" class="form-control"  name="username" data-validate="required:请输入昵称" placeholder="昵称" aria-describedby="basic-addon1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="field">
                                                <div class="input-group">
                                                    <span class="input-group-addon" id="basic-addon2">邮箱</span>
                                                    <input type="text" class="form-control"  name="email" data-validate="email:请输入正确的邮箱地址" placeholder="邮箱" aria-describedby="basic-addon2">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="field">
                                                <textarea class="form-control" rows="5" name="content" cols="50" data-validate="required:请输入留言内容" placeholder="请输入留言内容"></textarea>
                                            </div>
                                        </div>
                                        <!--<div class="form-group">-->
                                        <!--<div class="field">-->
                                        <!--<div class="input-group">-->
                                        <!--<input type="text" class="input" name="passcode" placeholder="填写右侧的验证码" data-validate="required:请填写右侧的验证码" />-->
                                        <!--<span class="addbtn">-->
                                        <!--<img src="images/passcode.jpg" width="80" height="32" class="passcode" />-->
                                        <!--</span>-->
                                        <!--</div>-->
                                        <!--</div>-->
                                        <!--</div>-->

                                        <div class="form-group">
                                            <div class="field">
                                                <div class="input-group">
                                                    <div class="input-group-addon">验证码</div>
                                                    <input type="text" class="form-control" style="height: 46px;" id="txt_check" name="txt_check" data-validate="required:请输入右侧验证码" placeholder="验证码">
                                                    <div class="input-group-addon"><img style="border: 1px solid #C7C7C7;" class="img passcode" src="<?php echo U('Home/Liuyan/verify');?>" onClick="this.src = this.src + '?' + Math.random();" title="看不清楚?点击刷新验证码?"></div>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="form-button">
                                            <button class="btn btn-default" type="submit">
                                                提 交</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <br />
                    </div>
                    <hr />
                </div>
                <br />
                <br />
                <br />
            </div>
        </div>
    </div>


    <footer class="main-footer">
        <div class="container">
            <div class="row">
                <div class="col-sm-4">
                    <div class="widget">
                        <h4 class="title">最新文章</h4>
                        <div class="content recent-post">
                        <?php if(is_array($s_article)): $i = 0; $__LIST__ = $s_article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="recent-single-post">
                                <a href="<?php echo U('Article/index',array('a_id'=>$vo['a_id']));?>" class="post-title"><?php echo ($vo['a_title']); ?></a>
                                <div class="date">发布时间：<?php echo (date("Y-m-d H:i",$vo["create_time"])); ?></div>
                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="widget">
                        <h4 class="title">标签云</h4>
                        <div class="content tag-cloud">
                        <?php if(is_array($tag)): $i = 0; $__LIST__ = $tag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tag): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Article/index',array('a_id'=>$tag['a_id']));?>"><?php echo ($tag['a_keyword']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="widget">
                        <h4 class="title">友情链接</h4>
                        <div class="content tag-cloud friend-links">
                            <?php if(is_array($link)): $i = 0; $__LIST__ = $link;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fl): $mod = ($i % 2 );++$i;?><a href="<?php echo ($fl['url']); ?>" title="<?php echo ($fl['name']); ?>" target="_blank"><?php echo ($fl['name']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <div class="copyright">
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <span>Copyright &copy; <a href="http://www.findz.cn/">findz.cn</a></span> |
                    <span><a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo ($web['icp']); ?></a></span>
                </div>
            </div>
        </div>
    </div>
    <div id="loadProgress" class="progress progress-top"></div>
    <div class="rotate" id="rotate">
        <div class="rotate-icon"></div>
    </div>
    <a href="#" id="back_to_top"><i class="fa fa-angle-up"></i></a>
    <div class="hidden"><?php echo ($web['tj']); ?></div>
    <script src="/lzkong/blog/Public/Common/js/jquery.min.js"></script>
    <script src="/lzkong/blog/Public/Common/js/bootstrap.min.js"></script>
    <script src="/lzkong/blog/Public/Home/js/base.js"></script>
    
    <script type='text/javascript'>
        $({property: 0}).animate({property: 100}, {
            duration: 3000,
            step: function() {
                var percentage = Math.round(this.property);

                $('#loadProgress').css('width',  percentage+"%");

                if(percentage == 100) {
                    $("#loadProgress").addClass("done");//完成，隐藏进度条
                    $("#rotate").addClass("done");//完成，隐藏进度条
                }
            }
        });
    </script>
</body>
</html>